<template>
  <div class="layout-warpper" />
</template>
<script>
  import { itemDelete } from "../../../api/api.js";
  export default {
    data() {
      return {};
    },
    async created() {},
    methods: {
      async deleteDataList() {
        const arr = [];
        this.rowList.children.forEach((item) => {
          arr.push(item.itemConfigId);
        });
        arr.push(this.rowList.itemConfigId);
        try {
          const p = {
            itemIds: arr
          };
          const res = await itemDelete(p);
          if (res.success) {
            this.loading = false;
            this.AddVisible = false;
            this.$message({
              type: "success",
              message: "删除成功",
              single: true
            });
            this.handleSearchFn();
            this.deleteLiveVisible = false;
          } else {
            this.$message({
              type: "error",
              message: "获取数据失败，请稍后再试",
              single: true
            });
          }
        } catch (err) {
          this.$message({
            type: "error",
            message: "获取数据失败，请稍后再试",
            single: true
          });
        }
      }
    }
  };
</script>
<style lang="scss" scoped></style>
